<div class="media">
    <div class="media-left">
        <img src="${userlog.user.avatarUrl}" class="avatar-md img-circle">
    </div>
    <div class="media-body">
        <!--@if(userlog.type=="GALLERY"){-->
        <p>${userlog.user.html}创建了相册${userlog.gallery.html}</p>
        <!--@}else if(userlog.type=="CREATE_VOTE"){-->
        <p>${userlog.user.html}发起投票${userlog.vote.html}</p>
        <!--@}else if(userlog.type=="JOIN_VOTE"){-->
        <p>${userlog.user.html}参与了投票${userlog.vote.html}</p>
        <!--@}else if(userlog.type=="TWEET"){-->
        <!--@var tweet = userlog.tweet;-->
        <p>${userlog.user.html}更新了动态</p>

        <p>
            ${tweet.content}
            <!--@if(tweet.photoCount>0){-->
            &nbsp;<span class="text-success">${tweet.photoCount}图</span>&nbsp;
            <!--@}-->
            <a href="/tweet/show/${tweet.id}">
                查看详情
            </a>
        </p>

        <!--@}else if(userlog.type=="TWEET_COMMENT"){-->
        <!--@var comment = userlog.tweetComment;var tweet = comment.tweet;-->
        <p>${userlog.user.html}回复了动态：</p>

        <p>${comment.content}</p>

        <div class="well well-sm">
            ${comment.tweet.content}
            <!--@if(tweet.photoCount>0){-->
            &nbsp;<span class="text-success">${tweet.photoCount}图</span>&nbsp;
            <!--@}-->
            <a href="/tweet/show/${comment.tweetId}">查看详情</a>
        </div>
        <!--@}else if(userlog.type=="BLOG"){-->
        <p>${userlog.user.html}发表了笔记${userlog.blog.html}</p>
        <!--@}else if(userlog.type=="BLOG_COMMENT"){-->
        <!--@var comment = userlog.blogComment;-->
        <p>${userlog.user.html}对笔记${comment.blog.html}进行了评论：</p>

        <p>${comment.content}</p>
        <!--@}else if(userlog.type=="ACTIVITY"){-->
        <p>${userlog.user.html}发起了活动${userlog.activity.html}</p>
        <!--@}else if(userlog.type=="ACTIVITY_COMMENT"){-->
        <!--@var comment = userlog.activityComment;-->
        <p>${userlog.user.html}
            对活动${comment.activity.html}进行了评论：</p>

        <p>${comment.content}</p>
        <!--@}else{-->
        <p>未知内容，程序无法显示</p>
        <!--@}-->
        <p class="text-muted mb0 small">${userlog.createTime,prettyTime}</p>
    </div>
</div>